package MyTest;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import vader.Dao.student;
import vader.Service.SomeService;

public class JunitTEST {

    @Test
    public void test01(){
        String config = "applicationContext.xml";
        ApplicationContext app =new ClassPathXmlApplicationContext(config);
        SomeService service = app.getBean(SomeService.class);
        service.dosome();
    }

    @Test
    public void test02(){
        String config = "applicationContext.xml";
        ApplicationContext app = new ClassPathXmlApplicationContext(config);
        student stu = app.getBean(student.class);
        System.out.println(stu);

    }
}
